package com.cloud.gatewaySpringSecurity.service.Impl;

import com.cloud.gatewaySpringSecurity.mapper.WorkUserMapper;
import com.cloud.gatewaySpringSecurity.pojo.WorkUser;
import com.cloud.gatewaySpringSecurity.service.WorkUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhozixiong
 * @date 2023/03/03
 */
@Service
public class WorkUserServiceImpl implements WorkUserService {

    @Autowired
    private WorkUserMapper workUserMapper;

    @Override
    public WorkUser selectWorkByUid(String uid) {
        return workUserMapper.selectWorkByUid(uid);
    }

    @Override
    public WorkUser selectWorkByEmail(String email) {
        return workUserMapper.selectWorkByEmail(email);
    }

    @Override
    public WorkUser selectWorkByNumber(String number) {
        return workUserMapper.selectWorkByNumber(number);
    }
}
